import 'package:flutter/material.dart';

class SearchWidget extends StatefulWidget {
  const SearchWidget({super.key});

  @override
  State<SearchWidget> createState() => _SearchWidgetState();
}

class _SearchWidgetState extends State<SearchWidget> {
  @override
  Widget build(BuildContext context) {
    return const SizedBox(
      width: 250,
      child: Padding(
        padding: EdgeInsets.only(left: 8, right: 8),
        child: TextField(
          decoration: InputDecoration(
            hintText: 'Search',
            //输入里面输入文字内边距设置
            // hintText: widget.hintText,
            //不需要输入框下划线
            // border: InputBorder(borderSide: BorderSide()),
            //左边图标设置
            icon: Icon(Icons.search),
            iconColor: Color.fromRGBO(208, 210, 220, 1),
          ),
        ),
      ),
    );
  }
}
